package lumis.doui.control.asyncprogress;

import lumis.doui.control.Control;
import lumis.portal.PortalException;
import lumis.portal.manager.ManagerFactory;
import lumis.portal.progress.ProgressStringResource;
import lumis.util.IResource;
import lumis.util.XmlUtil;

/**
 * Pair of progress bars, used by async progress infrastructure
 *
 * @version $Revision: 5272 $ $Date: 2006-12-07 19:38:24 -0200 (Thu, 07 Dec 2006) $
 * @since 4.0.7
 */
public class AsyncProgressControl extends Control
{
	public void setRenderData() throws PortalException
	{
		IResource resource = new ProgressStringResource();
		XmlUtil.addTextNode(controlDefinitionNode, "overallProgress", ManagerFactory.getLocalizationManager().localize("STR_OVERALL_PROGRESS", resource, locale));
		XmlUtil.addTextNode(controlDefinitionNode, "itemProgress", ManagerFactory.getLocalizationManager().localize("STR_ITEM_PROGRESS", resource, locale));
		XmlUtil.addTextNode(controlDefinitionNode, "elapsedTime", ManagerFactory.getLocalizationManager().localize("STR_ELAPSED_TIME", resource, locale));
		XmlUtil.addTextNode(controlDefinitionNode, "estimatedRemainingTime", ManagerFactory.getLocalizationManager().localize("STR_ESTIMATED_REMAINING_TIME", resource, locale));
		super.setRenderData();
	}
}
